# makefile for Microsoft nmake.
CC = cl
LD = link
RM = del

EXE = tcpclose.exe
OBJS = tcpclose.obj
C_SRC = tcpclose.cpp

CFLAGS = /c /Zi /W3 /WX- /O2 /Oi /Oy- /D "_CRT_SECURE_NO_WARNINGS" \
	/D "WIN32" /D "_CONSOLE" /D "WPCAP" /D "HAVE_REMOTE" /D "_UNICODE" /D "UNICODE" /Gm- /EHsc /Zp2
LFLAGS = /out:$(EXE) /INCREMENTAL:NO "ws2_32.lib" \
	/SUBSYSTEM:CONSOLE /OPT:REF /OPT:ICF /TLBID:1

all: $(EXE)

$(EXE): $(OBJS)
	$(LD) $(OBJS) $(LFLAGS)

$(OBJS):
	$(CC) $(C_SRC) $(CFLAGS)

clean:
	$(RM) *.obj *.pdb *.exe
